package com.lg.okframe.entities;

import org.simpleframework.xml.Attribute;
import org.simpleframework.xml.ElementList;
import org.simpleframework.xml.Root;
import java.util.ArrayList;
import java.util.List;
public class XMLService {
    @Root(name = "resp", strict = false) //name:要解析的xml数据的头部
    @Attribute
    public String city;
    @Attribute
    public String updatetime;
    @Attribute
    public String wendu;
    @Attribute
    public String fengli;
    @Attribute
    public String shidu;
    @Attribute
    public String fengxiang;
    @Attribute
    public String sunrise_1;
    @Attribute
    public String sunset_1;
    @Attribute
    public String sunrise_2;
    @Attribute
    public String sunset_2;
    @ElementList(required = true, inline = true, entry = "environment") //标志是集合
    public List<Environment> newsXmls = new ArrayList<>();

}
